
<!--  carousel_banner -->
{{template Elements/iscroll_slide}}

<style>
#main-menu {padding:0 0;}
#main-menu li {list-style:none;margin:0 0;}
#main-menu li a{display:block;margin-top:5px;border:0 none;color:#FFF;}
#main-menu li a i{font-size:5em;}
#main-menu li:nth-child(6n+1) a{ background-color:#dd1184}
#main-menu li:nth-child(6n+2) a{ background-color:#079ae8}
#main-menu li:nth-child(6n+3) a{ background-color:#8fb210}
#main-menu li:nth-child(6n+4) a{ background-color:#caa703}
#main-menu li:nth-child(6n+5) a{ background-color:#5359bb}
#main-menu li:nth-child(6n+6) a{ background-color:#019cba}
</style>
	<ul class="row" id="main-menu">
	<portlet model="Category" portlet="body" recursive="1" order="left asc" list_tpl="inner" limit="12" info="conditions[parent_id]=$site_cate_id&conditions[visible]=1">
		<li class="col-md-4 col-xs-6">
		<?php  if($item['link']){$link=$item['link'];}else{$link = '/'.$item['slug'];} ?>
		<a class="btn" href="{{$this->Html->url($link)}}">
			{{if $item['coverimg']}}
				<img src="{{$this->Html->image($item['coverimg'],array('onlyurl'=>true))}}">
			{{elseif $item['prefix_icon'] }}
				<i class="{{$item['prefix_icon']}}"></i>
			{{/if}}
			<p>{{$item['name']}}</p>		
		</a>
		</li>
	</portlet>
	</ul>


<div class="row clearfix">	
	
	<div class="ui-contain col-xs-12">
		<portlet portlet="onlycontent"  title="{{$Category['Category']['name']}}">
			<div class="Content-body">{{$Category['Category']['content']}} </div>
<?PHP if($total>0){ ?>
<ul class="clearfix ui-portlet-list">
    <?PHP foreach($Category['datalist'] as $item) {
		$item['slug'] = $item['slug']?$item['slug']:$item['id'];
    ?>	
		{{include $Category['Category']['template']}}			
	<?php } ?>
</ul>
	{{$page_navi}}
<?php } ?></portlet>
	</div>
</div>